package testCasalib 
{
	import flash.geom.Point;
	import org.casalib.display.CasaMovieClip;
	import org.casalib.time.Stopwatch;
	import org.casalib.util.DrawUtil;
	
	/**
	 * ...
	 * @author ...
	 */
	public class stopwatch extends CasaMovieClip 
	{
		
		public function stopwatch() 
		{
			super();

            var stopwatch:Stopwatch = new Stopwatch();
            stopwatch.start();

            var l:uint = 10000;
            while (l--) {
                doSomething();
            }

            trace(stopwatch.time);

		}
		
		public function doSomething():void 
		{
			this.graphics.lineStyle(4, 0x00FF00);
			DrawUtil.drawPath(this.graphics, new Array(new Point(50, 25), new Point(25, 50), new Point(50, 75), new Point(25, 100)));
			this.graphics.endFill();
        }

	}

}